Week 3
Feb 02/13/23
- Questions for Vannary were added to the GitHub projects.
Training from scratch
Using fit_one_cycle and fit_flat_cos
- When we would create the
Learnerobject, we would passpretrained=False fine_tunemethod is to be used during transfer learning (not while training from scratch)- Find ideal learning rate using
lr = learn.lr_find() - Call the
learn.fit_one_cycle(no_of_epochs, lr[0]) - Then in a separate file
- Call the
learn.fit_flat_cos(no_of_epochs, lr[0])
fit_one_cycle.py
learn = vision_learner(dls, resnet50, pretrained=False, cbs=WandbCallback())
ideal_lr = learn.lr_find()
learn.fit_one_cycle(no_of_epochs, lr[0])
fit_flat_cos.py
learn = vision_learner(dls, resnet50, pretrained=False, cbs=WandbCallback())
ideal_lr = learn.lr_find()
learn.fit_flat_cos(no_of_epochs, lr[0])